export default {
  //路由配置：路径相对于src/pages
  routes: [
      { path: "/login", component: "./login" },
      { path: "/", component: "./index" },
      { 
        path: "/about", 
        component: "./about",
        Routes: ["./routes/PriviteRoute.js"]  //路由守卫
      },
      { 
          path: "/users",
          component: "./users/_layout",
          routes: [
              { path: "/users", component: "./users/index" },
              { path: "/users/:name", component: "./users/$name" },
          ]
      },
      { component: "./notfound" }  // 404页面，上面的所有路由都没有匹配时，则匹配404页面
  ]
}